﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/main/AdminBase.Master" AutoEventWireup="true" CodeBehind="list_stafflogin.aspx.cs" Inherits="com.lifan.motorcycle.admin.system.list_stafflogin" %>
<%@ Import Namespace="System.Collections.Generic" %>
<%@ Import Namespace="Model.AuthModel" %>
<%@ Import Namespace="Com.Ompchina.Lib.Text" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cph_header" runat="server">
<script type="text/javascript">
    $(function () {
        Init.tableList(".list");
    })
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cph_pagename" runat="server">
权限配置 &gt; <%= base.ConvertAction("登录记录")%> &gt; 管理员：<%= _DefaultStaff.Username %>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cph_pagelink" runat="server">
<li><a href="list_staff.aspx?action=list">成员列表</a></li>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="cph_main" runat="server">
<br /><br />
<table class="table list" cellpadding="0" cellspacing="0">
	<tr>
        <th class="w100">编号</th>
	    <th>成员名称</th>
        <th class="w100">登录ip</th>
        <th class="w180">登录时间</th>
    </tr>
    <%
        int recordCount = 0, pageSize = 20;
        IList<StaffLoginInfo> list = this._GetLogin(pageSize, out recordCount);
        if (list != null && list.Count > 0) 
        {            
            foreach (StaffLoginInfo info in list) 
            {
                %>
                <tr>
                    <td><%= info.LoginID %></td>
                    <td><%= info.Staff.Username%></td>                    
                    <td><%= info.IP %></td>
                    <td><%= info.AddTime.ToString() %></td>
                </tr>
                <%
            }
        }
    %>
    <tr>
        <th colspan="4" class="pager">
            <%
                Pager.ResponsePager(Response, Request.Url.AbsolutePath, "action=list" + base.GetQueryString()
                    , true, true, true, true, PageIndex, pageSize, recordCount, 7);
            %>
            总记录：<%= recordCount %>，当前第<%= PageIndex %>页
       </th>
    </tr>
</table>
</asp:Content>
